<?php

namespace App\V3\V3_2_7\Models;

use Illuminate\Database\Eloquent\Model;
use DateTimeInterface;
class CustomerServiceModel extends Model
{
    protected $table = 'customer_servicer_printer_manage';
    protected $dateFormat = 'U';//这个时间字段被为被格式化为UNIX 时间戳的形式存储
    protected $fillable = ['corpid','service_url','service_phone','created_at','updated_at','tb_url'];
    //toArray 时间转换问题
    protected function serializeDate(DateTimeInterface  $date)
    {
        return $date->format('Y-m-d H:i:s');
    }
}
